<?php 

include_once('vendor/autoload.php');

use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;
$capsule->addConnection(require 'config.php');
$capsule->bootEloquent();


$users = Capsule::table('users')->get();
foreach ($users as $user) {
    echo $user->username;
}


 ?>